package com.frxuexi.mymvi

import com.frxuexi.mymvi.entity.NewsData
import kotlinx.coroutines.flow.Flow
import retrofit2.http.GET
import retrofit2.http.Query

interface ApiService {

    @GET("/api/news/page?size=10&type=0")
    fun getNews(@Query("page")page:Int):Flow<NewsData>
}